package java2_unit5_1015;

public class Cat extends Pet {

	private int lazy;
	
	public int getLazy() {
		return lazy;
	}

	public void setLazy(int lazy) {
		if(lazy<1 || lazy>10) {
			lazy=5;
		}
		this.lazy = lazy;
	}

	public Cat() {

	}
	
	public Cat(String name, int health, String sex, int lazy) {
		super(name, health, sex);
		this.lazy = lazy;
	}

	@Override
	public void toHospital() {
		System.out.println("宠物猫去医院");
	}

	@Override
	public void toFeed() {
		System.out.println("宠物猫吃猫粮");
	}

}
